import ReactDOM from 'react-dom/client'
// import ReactDOM from 'react-dom'
import Router from './router'
import { ConfigProvider } from 'antd'


//v18之前的渲染
// ReactDOM.render(
// 	<ConfigProvider theme={{ token: { colorPrimary: "#66DAB0", borderRadius: 3 } }}>
// 		<Router />
// 	</ConfigProvider>,
// 	document.getElementById('root'))

// v18 之后的渲染
const root = ReactDOM.createRoot(
	document.getElementById("root") as HTMLElement
)
root.render(
	<ConfigProvider theme={{ token: { colorPrimary: "#66DAB0", borderRadius: 3 } }}>
		<Router />
	</ConfigProvider>,
)